
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/***
 * 微信账号信息
 * @author dawei
 *
 */
@Entity
@Table(name = "t_WeixinInfo")
public class WeixinInfo
{
    private String id;

    //昵称
    private String nickname;

    //省
    private String province;

    //市
    private String city;

    //头像路径
    private String headimgurl;

    //头像内容64
    private String sheadimgurl;

    private String subscribe;

    //性别1男
    private String sex;

    //语言
    private String language;

    //国家
    private String country;

    private String subscribe_time;

    /**是否门店用户***/
    private boolean mendian;

    /**已经关注1，关注取消2**/
    private Integer status;

    //最后更新时间
    private String updateTime;

    //最后关注时间
    private String guazhuTime;

    //最后取消关注时间
    private String quxiaoTime;

    @GenericGenerator(name = "generator", strategy = "assigned")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "openid", unique = true, nullable = false)
    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getNickname()
    {
        return nickname;
    }

    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public boolean isMendian()
    {
        return mendian;
    }

    public void setMendian(boolean mendian)
    {
        this.mendian = mendian;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getHeadimgurl()
    {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl)
    {
        this.headimgurl = headimgurl;
    }

    public String getSubscribe()
    {
        return subscribe;
    }

    public void setSubscribe(String subscribe)
    {
        this.subscribe = subscribe;
    }

    public String getSex()
    {
        return sex;
    }

    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getLanguage()
    {
        return language;
    }

    public void setLanguage(String language)
    {
        this.language = language;
    }

    public String getCountry()
    {
        return country;
    }

    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getSubscribe_time()
    {
        return subscribe_time;
    }

    public void setSubscribe_time(String subscribeTime)
    {
        subscribe_time = subscribeTime;
    }

    @Override
    public String toString()
    {
        return "WeixinInfo [mendian=" + mendian + ", nickname=" + nickname + ", openid=" + id + "]";
    }

    @Column(name = "sheadimgurl", length = 4000)
    public String getSheadimgurl()
    {
        return sheadimgurl;
    }

    public void setSheadimgurl(String sheadimgurl)
    {
        this.sheadimgurl = sheadimgurl;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public String getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(String updateTime)
    {
        this.updateTime = updateTime;
    }

    public String getGuazhuTime()
    {
        return guazhuTime;
    }

    public void setGuazhuTime(String guazhuTime)
    {
        this.guazhuTime = guazhuTime;
    }

    public String getQuxiaoTime()
    {
        return quxiaoTime;
    }

    public void setQuxiaoTime(String quxiaoTime)
    {
        this.quxiaoTime = quxiaoTime;
    }

}
